/**
 * @file parsing.cc
 * @author your name (you@domain.com)
 * @brief 
 * @version 0.1
 * @date 2024-03-29
 * 
 * @copyright Copyright (c) 2024
 * 
 */
#include "src/base/logging.h"
#include "src/parsing/parser.h"
#include "src/asm/vm-state-inl.h"
#include "src/parsing/scanner-character-streams.h"

namespace parsing {

    bool ParseProgram() {
        DCHECK(1);
        VMState<PARSER> state(PARSER);
        std::unique_ptr<Utf16CharacterStream> stream(ScannerStream::For("let aa = 10;"));
        std::cout << "ParseProgram=======>" << std::endl;
        Parser parser(stream.get());
        parser.ParseProgram();
        return true;
    }

} // namespace parsing